from django.shortcuts import render, HttpResponse

# Create your views here.
from rest_framework.views import APIView
from luffy.utils.response import APIResponse
# # 3 以后使用，导入，使用
# from luffy.utils import my_logging
#
#
# def Apiview(resquest):
#     logger = my_logging.get_logger()
#     logger.info('我是日志')
#     return HttpResponse('ok')


# class UserView(APIView):
#     def get(self,request):
#         return APIResponse(username='lqz',token='ssss')


#
# def index(request):
#     res=HttpResponse('ok')
#     # return HttpResponse('ok')
#     # res['Access-Control-Allow-Origin']='*'
#     # if request.method == 'OPTIONS':
#     #     res['Access-Control-Allow-Methods']='*'
#     return res